\hypertarget{homework4_coan_8c}{
\section{homework4Coan.c File Reference}
\label{homework4_coan_8c}\index{homework4Coan.c@{homework4Coan.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include \char`\"{}homework4Coan.h\char`\"{}}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{homework4_coan_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{main} ()
\begin{DoxyCompactList}\small\item\em requests weight of a parcel and outputs price to deliver parcel \end{DoxyCompactList}\item 
float \hyperlink{homework4_coan_8c_afeddb27fc144e7db0235226ccf169ed2}{getWeight} ()
\begin{DoxyCompactList}\small\item\em Requests the weight of the parcel from the user. \end{DoxyCompactList}\item 
float \hyperlink{homework4_coan_8c_a7e569df3db79d77b7150eb450e0decd2}{calculatePrice} (float parcelWeight)
\begin{DoxyCompactList}\small\item\em Determines the price to deliver the parcel. \end{DoxyCompactList}\item 
void \hyperlink{homework4_coan_8c_adec1963e59e53b32ea4725ebec67929c}{printResponse} (float parcelWeight, float price)
\begin{DoxyCompactList}\small\item\em Tells the user the price to deliver the parcel. \end{DoxyCompactList}\item 
int \hyperlink{homework4_coan_8c_a1156b64721abc1b8a4a36d143404c433}{inquireContinuation} ()
\begin{DoxyCompactList}\small\item\em Asks the user if they want to run the program again. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{homework4_coan_8c_a7e569df3db79d77b7150eb450e0decd2}{
\index{homework4Coan.c@{homework4Coan.c}!calculatePrice@{calculatePrice}}
\index{calculatePrice@{calculatePrice}!homework4Coan.c@{homework4Coan.c}}
\subsubsection[{calculatePrice}]{\setlength{\rightskip}{0pt plus 5cm}float calculatePrice (
\begin{DoxyParamCaption}
\item[{float}]{parcelWeight}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8c_a7e569df3db79d77b7150eb450e0decd2}


Determines the price to deliver the parcel. 

\begin{DoxyItemize}
\item $<$2.5 kg costs \$3.50 per kg \par
 \item 2.5-\/5 kg costs \$2.85 per kg \par
 \item $>$5 kg costs \$2.45 per kg 
\begin{DoxyParams}{Parameters}
{\em parcelWeight} & -\/ the weight of the parcel \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
price -\/ The price to deliver the parcel 
\end{DoxyReturn}
\end{DoxyItemize}
\hypertarget{homework4_coan_8c_afeddb27fc144e7db0235226ccf169ed2}{
\index{homework4Coan.c@{homework4Coan.c}!getWeight@{getWeight}}
\index{getWeight@{getWeight}!homework4Coan.c@{homework4Coan.c}}
\subsubsection[{getWeight}]{\setlength{\rightskip}{0pt plus 5cm}float getWeight (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8c_afeddb27fc144e7db0235226ccf169ed2}


Requests the weight of the parcel from the user. 

\begin{DoxyReturn}{Returns}
weight -\/ The weight the user entered 
\end{DoxyReturn}
\hypertarget{homework4_coan_8c_a1156b64721abc1b8a4a36d143404c433}{
\index{homework4Coan.c@{homework4Coan.c}!inquireContinuation@{inquireContinuation}}
\index{inquireContinuation@{inquireContinuation}!homework4Coan.c@{homework4Coan.c}}
\subsubsection[{inquireContinuation}]{\setlength{\rightskip}{0pt plus 5cm}int inquireContinuation (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8c_a1156b64721abc1b8a4a36d143404c433}


Asks the user if they want to run the program again. 

\begin{DoxyReturn}{Returns}
true if user wants to continue 
\end{DoxyReturn}
\hypertarget{homework4_coan_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{
\index{homework4Coan.c@{homework4Coan.c}!main@{main}}
\index{main@{main}!homework4Coan.c@{homework4Coan.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}


requests weight of a parcel and outputs price to deliver parcel 

\begin{DoxyReturn}{Returns}
true for successful termination 
\end{DoxyReturn}
\hypertarget{homework4_coan_8c_adec1963e59e53b32ea4725ebec67929c}{
\index{homework4Coan.c@{homework4Coan.c}!printResponse@{printResponse}}
\index{printResponse@{printResponse}!homework4Coan.c@{homework4Coan.c}}
\subsubsection[{printResponse}]{\setlength{\rightskip}{0pt plus 5cm}void printResponse (
\begin{DoxyParamCaption}
\item[{float}]{parcelWeight, }
\item[{float}]{price}
\end{DoxyParamCaption}
)}}
\label{homework4_coan_8c_adec1963e59e53b32ea4725ebec67929c}


Tells the user the price to deliver the parcel. 


\begin{DoxyParams}{Parameters}
{\em parcelWeight} & -\/ the weight of the parcel \\
\hline
{\em price} & -\/ the price to deliver the parcel \\
\hline
\end{DoxyParams}
